package action.articleclass;

import service.ArticleClassService;
import bean.ArticleClass;

import com.opensymphony.xwork2.ActionSupport;

public class CheckArticleClassInfoAction extends ActionSupport {
	private ArticleClass articleClass;
	private ArticleClassService articleClassService;
	
	@Override
	public String execute() throws Exception {
		System.out.println("--"+articleClass.getId());
		articleClass=articleClassService.getArticleClassById(articleClass.getId());
		if(articleClass!=null){
			return SUCCESS;
		}
		else
			return INPUT;
	}

	public ArticleClass getArticleClass() {
		return articleClass;
	}

	public void setArticleClass(ArticleClass articleClass) {
		this.articleClass = articleClass;
	}

	public ArticleClassService getArticleClassService() {
		return articleClassService;
	}

	public void setArticleClassService(ArticleClassService articleClassService) {
		this.articleClassService = articleClassService;
	}
	
	
}
